package com.webdev.newtech.config;

import com.webdev.newtech.dao.ISysUserDao;
import com.webdev.newtech.dao.impl.SysUserDaoImplMsql;
import com.webdev.newtech.dao.impl.SysUserDaoImplSqlserver;
import com.webdev.newtech.domain.SysUser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class JavaSimpleConfig {

    //主动的进行注册--将类的实例化交给Spring处理
    @Bean
    public  ISysUserDao userDaoByMsql(){
        return new SysUserDaoImplMsql();
    }

    @Bean
    public ISysUserDao userDaoBySqlServer(){
        return new SysUserDaoImplSqlserver();
    }

}
